package co.yixiang.hw.repository;

import co.yixiang.hw.domain.YxStoreCouponIssueUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import java.util.List;
import java.util.Map;

/**
* @author Walert
* @date 2020-03-10
*/
public interface YxStoreCouponIssueUserRepository extends JpaRepository<YxStoreCouponIssueUser, Integer>, JpaSpecificationExecutor<YxStoreCouponIssueUser> {

    /**
     * 根据用户ID和发布优惠券ID返回领取集合
     * @param uid
     * @param issueCouponId
     * @return
     */
    List<YxStoreCouponIssueUser> getByUidAndIssueCouponId(Integer uid, Integer issueCouponId);

}